<template>
  <div class="body">
    <div class="container">
      <div class="space-left">
        <!-- <div class="side-bar"></div>
        <div style="font-weight: 550"
          ><el-icon><Opportunity /></el-icon>消息中心</div
        >
        <ul class="list">
          <li class="item">我的消息</li>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
        </ul> -->
      </div>

      <div class="space-right">
        <div data-no-clip="no-clip" class="space-right-top">
          <div class="title">
            <div>我的消息</div>
            <div class="group-helper">
              <div class="button-box">
                <div class="item">
                  <button class="helper-btn">
                    <span>应援团助手</span>
                  </button>
                </div>
              </div>
            </div>
          </div>
        </div>

        <div class="space-right-bottom ps">
          <div class="router-view">
            <div class="d">
              <div class="bili-im">
                <div class="left">
                  <div class="title"><span>近期消息</span></div>

                  <div class="list-container ps">
                    <div class="list">
                      
                    </div>
                  </div>
                </div>

                <div class="right">

                  <div class="dialog">

                    <!-- <div class="titles">
                      1234
                    </div> -->
                    <div class="message-list">
                      <div class="message-list-content min_h_100">

                        <div class="msg-more">
                        <!-- <div class="msg-item is-me">
                          <img src="" alt="">
                          <div class="message">
                            <div class="message-content is-me">1111</div>
                          </div>
                        </div> -->
                        <div class="msg-item not-me"></div>
                        </div>

                      </div>
                    </div>
                    <div class="send-box"></div>

                  </div>

                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ElMenu } from 'element-plus';
import { ref } from 'vue';
import Api from '../../script/Api';

const list = ref([]);
const query = () => {
  Api.get('/private', {}, (data) => {
    if (data.success) {
      list.value = data.data;
    } else {
      ElMessage.error(data.message);
    }
  });
};
query();
</script>

<style scoped>

.message .message-content[data-v-2a2a18ce]:not(.is-img) {
    position: relative;
    z-index: 1;
}

.is-me .message[data-v-2a2a18ce] {
    position: relative;
    float: right;
    color: #fff;
}

.msg-item[data-v-2a2a18ce] {
    min-height: 48px;
    padding: 0 16px 16px;
    overflow: hidden;
    position: relative;
}

.no-more[data-v-2fe28aba] {
    color: #999;
    padding-left: 300px;
    padding-top: 10px;
}

.message-list-content[data-v-35890f8f] {
    overflow: auto;
}

.min_h_100 {
    min-height: 100% !important;
}


.message-list[data-v-35890f8f] {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: #f4f5f7;
}



.titles span {
    font-size: 18px;
    

}

.titles{
    height: 36px;
    font-size: 18px;
    display: flex;
  padding-left: 300px;
  padding-top: 10px;
    border-bottom: 1px solid #e9eaec;
    position: relative;
    color: #333;
}


.dialog {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    height: 100%;
}


.bili-im .right[data-v-6750822a] {
    width: calc(100% - 240px);
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }


.body {
  background: url(//s1.hdslb.com/bfs/static/blive/blfe-message-web/static/img/light_bg.8e46311e.png)
    top / cover no-repeat fixed;

  padding: 0;
  margin: 0;
}

.user-message-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.message-item {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.message-item:hover {
  background-color: #f0f0f0;
}

.avatars {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 16px;
}

.message-content {
  flex: 1;
}

.sender-name {
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 4px;
}

.message-text {
  color: #555;
}

.list-item .close[data-v-4d38e599] {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 24px;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  opacity: 0;
  -webkit-transition: 300ms;
  transition: 300ms;
  font: 12px;
  color: #999;
}

.list-item .last-word[data-v-4d38e599] {
  color: #999;
  padding: 8px 0;
  margin-bottom: -6px;
}
.list-item .last-word[data-v-4d38e599] {
  overflow: hidden;
  width: 155px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list-item .name-box .name .name-value[data-v-4d38e599] {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item .name-box .name[data-v-4d38e599] {
  width: 155px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.list-item .name[data-v-4d38e599] {
  color: #333;
  font-size: 14px;
  min-height: 16px;
  line-height: 1;
}

.list-item .name-box[data-v-4d38e599] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.list-item .avatar[data-v-4d38e599] {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-image: url(//static.hdslb.com/images/member/noface.gif); */
  margin-right: 8px;
  position: relative;
}

.active {
  background-color: #e4e5e6;
}
.list-item {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  padding: 19px 24px;
  position: relative;
  cursor: pointer;
}

.bili-im .left .list-container {
  height: calc(100% - 36px);
  position: relative;
  overflow: hidden;
}

.bili-im .left .title {
  padding-left: 24px;
  line-height: 35px;
  height: 36px;
  border-bottom: 1px solid #e9eaec;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
}

.bili-im .left {
  width: 240px;
  border-right: 1px solid #e9eaec;
  position: relative;
}
.bili-im * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.bili-im {
  font-size: 12px;
  color: #666;
  background-color: #fff;
  -webkit-box-shadow: 0 2px 4px 0 rgba(121, 146, 185, 0.54);
  box-shadow: 0 2px 4px 0 rgba(121, 146, 185, 0.54);
  border-radius: 4px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
}

.d {
  height: calc(100vh - 138px);
}

.space-right .space-right-bottom {
  overflow: inherit !important;
}
.space-right .space-right-bottom {
  padding: 10px;
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: calc(100% - 66px);
  overflow: hidden;
}
.ps {
  overflow: hidden !important;
  overflow-anchor: none;
  -ms-overflow-style: none;
  touch-action: auto;
  -ms-touch-action: auto;
}

div {
  display: block;
  unicode-bidi: isolate;
}

.container {
  height: calc(100vh - 56px);
  margin: 0 auto;
  max-width: 1143px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}
.space-left {
  width: 140px;
  min-width: 140px;
  background-color: rgba(255, 255, 255, 0.8);
}

.space-right {
  width: calc(100% - 140px);
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.5);
}

.side-bar {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: #666;
}
.title {
  height: 62px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #333;
}

.list {
  margin: 0;
  padding: 0 0 0 20px;
}

/* .item{
  height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    color: #6b757b;
}

h1, h2, h3, h4, h5, h6, ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

li {
    display: list-item;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}

.item[data-v-60ecf32f]::before {
    width: 10px;
    height: 20px;
    text-align: center;
}

.list li[data-v-60ecf32f]::before {
    content: "\25cf";
    line-height: 20px;
} */

.space-right .space-right-top {
  padding: 10px 10px 0;
  z-index: 11;
}

.space-right .space-right-top .title {
  height: 42px;
  background-color: #fff;
  -webkit-box-shadow: 0 2px 4px 0 rgba(121, 146, 185, 0.54);
  box-shadow: 0 2px 4px 0 rgba(121, 146, 185, 0.54);
  -ms-flex-negative: 0;
  flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 15px;
  color: #666;
  border-radius: 4px;
}

.button-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.button-box .item {
  position: relative;
}

.button-box .item > button {
  position: relative;
  color: #99a2aa;
  font-size: 14px;
}
.create-btn,
.helper-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}
a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  outline: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background-color: transparent;
}

button {
  appearance: auto;
  font-style: ;
  font-variant-ligatures: ;
  font-variant-caps: ;
  font-variant-numeric: ;
  font-variant-east-asian: ;
  font-variant-alternates: ;
  font-variant-position: ;
  font-weight: ;
  font-stretch: ;
  font-size: ;
  font-family: ;
  font-optical-sizing: ;
  font-size-adjust: ;
  font-kerning: ;
  font-feature-settings: ;
  font-variation-settings: ;
  text-rendering: auto;
  color: buttontext;
  letter-spacing: normal;
  word-spacing: normal;
  line-height: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: center;
  align-items: flex-start;
  cursor: default;
  box-sizing: border-box;
  background-color: buttonface;
  margin: 0em;
  padding-block: 1px;
  padding-inline: 6px;
  border-width: 2px;
  border-style: outset;
  border-color: buttonborder;
  border-image: initial;
}

.create-btn::before,
.helper-btn::before {
  display: inline-block;
  content: '';
  width: 18px;
  height: 18px;
  background: url()
    center / contain no-repeat;
  margin: 0 3px 0 10px;
}

.group-helper {
  position: relative;
}
</style>
